package zju.ccnt.oauth2.user.api;


import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * Created by zha on 14/11/5.
 */
public class ChangePasswordRequest {
    @NotNull
    @Valid
    private PasswordRequest oldPassword;

    @NotNull
    @Valid
    private PasswordRequest newPassword;

    public ChangePasswordRequest() {}

    public PasswordRequest getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(zju.ccnt.oauth2.user.api.PasswordRequest oldPassword) {
        this.oldPassword = oldPassword;
    }

    public PasswordRequest getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(PasswordRequest newPassword) {
        this.newPassword = newPassword;
    }
}
